import {request} from "@/utils/request.ts";

export async function loginReq(
    body: Partial<API.LoginReq>,
    options?: { [p: string]: never }
) {
    return request<BaseResp<API.LoginResp>>({
        url: `/api/v1/base/login`,
        method: 'POST',
        data: body,
        ...(options || {}),
    });
}
